import { ToastController } from 'ionic-angular';
import {Injectable} from "@angular/core";

@Injectable()
export class Toast {

  constructor(private toastCtrl: ToastController) {
  }

  show(msg: string) {
    let toast = this.toastCtrl.create({
      message: msg,
      duration: 3000,
      position: 'top'
    });
    toast.present();
  }
}
